#!/usr/bin/python
 
# layout.py
 
import wx
 
class MyFrame(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(400, 500))
        
#        panel = wx.Panel(self, -1)

        hbox = wx.BoxSizer(wx.HORIZONTAL)
        pnl1 = wx.Panel(self,- -1, style=wx.SIMPLE_BORDER)
#        wx.Button(pnl1, -1, "Button1",wx.DefaultPosition,wx.DefaultSize,)       
#        box.Add(wx.Button(panel, -1, "Button2"), 0.5,wx.EXPAND)
#        box.Add(wx.Button(panel, -1, "Button3"), 3,wx.ALIGN_CENTER)
#        panel.SetSizer(box)
#        hbox.Add(wx.Button(pnl1, -1, "Button1"), 1,wx.EXPAND | wx.ALL, 10)

        text1 = "Now listen to me mama\nMama mama\nYou're taking away my last chance\nDon't take it away"
        font1 = wx.Font(10, wx.NORMAL, wx.ITALIC, wx.NORMAL)

        lyrics1 = wx.StaticText(pnl1, -1, text1,(100,250), style=wx.ALIGN_CENTRE)
        lyrics1.SetFont(font1)

        hbox.Add(pnl1, 1, wx.EXPAND | wx.ALL, 3)


        self.SetSizer(hbox)
        self.Centre()


class MyApp(wx.App):
    def OnInit(self):
        frame = MyFrame(None, -1, 'layout.py')
        frame.Show(True)
        frame.Centre()
        return True
 
app = MyApp(0)
app.MainLoop()
